import express from 'express'
import { RouterType } from './type'
import users from './users'
import arts from './arts'

const router = express.Router()

const routes: RouterType[] = [
  {
    path: '/users',
    routes: users
  },
  {
    path:'/arts',
    routes: arts
  }
]

routes.forEach(route => {
  router.use(route.path, route.routes)
})


export default router

